const app = getApp()
Page({
  data: {
    domainName: app.domainName,
    userInfo:{}
  },
  onLoad: function (options) {
     console.log(options.id)
     //options.id=1; //test just
     var _this=this;
    wx.request({
      url: app.domainName + 'web/?c=getuser',
      method: 'POST',
      data: {id:options.id }, header: { 'content-type': 'application/x-www-form-urlencoded' },
      success: function (res) {  
        _this.setData({userInfo:res.data});
          console.log(res)
      }});

  },



  onShareAppMessage: function () {

  }
})